﻿using Conversion;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApplication1
{
    public class TCPDisguisecs
    {
        public string Dev { get; set; }

        public string SrcMAC { get; set; }
        public string SrcIP { get; set; }
        public string SrcPort { get; set; }


        public string DstMAC { get; set; }

        public string DstIP { get; set; }
        public int DstPort { get; set; }

        EndianBitConverter bitConverter;

        private Socket socket;

        private byte[] BinMAC(string mac)
        {
            byte[] bin = new byte[6];
            byte num = 0;
            string[] macParts =  mac.Split(':');
            for (int i = 0; i < macParts.Length; i++)
            {
                num = byte.Parse(macParts[i], System.Globalization.NumberStyles.HexNumber);
                bin[i] = num;
            }
            return bin;

        }

        private byte[] BinIP(string ip)
        {
            byte[] bin = new byte[4];
            string[] ipParts = ip.Split('.');
            for (int i = 0; i < ipParts.Length; i++)
            {
                bin[i] = byte.Parse(ipParts[i]);
            }
            return bin;
        }
    }
}
